package com.youdianda.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoyanggao
 * @since 2023-05-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("ydd_link")
@ApiModel(value = "YddLink对象", description = "")
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class YddLink implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //标题
    private String title;
    //链接地址
    private String url;
    //描述
    private String des;
    //图片地址
    private String img;

    @ApiModelProperty("1是图片链接，2是文字链接")
    private String type;

    @ApiModelProperty("是否为默认数据，null表示不是，1表示是")
    private String defaultData;

}
